From: John Wiegley Date: Thu, 10 May 2001 03:30:15 +0000 (+0000) Subject: (eshell-number-regexp): Now that number conversions only happen for X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~40379 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=147f18dbf0a422eda446ca1da0267a2f82205dea;p=emacs.git (eshell-number-regexp): Now that number conversions only happen for Lisp function calls, the number regexp should now match all integer and floating point forms. --- diff --git a/lisp/eshell/esh-util.el b/lisp/eshell/esh-util.el index 440cf01d607..62c72af02ca 100644 --- a/lisp/eshell/esh-util.el +++ b/lisp/eshell/esh-util.el @@ -88,7 +88,7 @@ Numeric form is tested using the regular expression :type 'boolean :group 'eshell-util) -(defcustom eshell-number-regexp "\\(0\\|-?[1-9][0-9]*\\(\\.[0-9]+\\)?\\)" +(defcustom eshell-number-regexp "-?\\([0-9]*\\.\\)?[0-9]+\\(e[-0-9.]+\\)?" "*Regular expression used to match numeric arguments. If `eshell-convert-numeric-arguments' is non-nil, and an argument matches this regexp, it will be converted to a Lisp number, using the